@import 'reset';

/** 边框线颜色 **/

$lineColor: #DDE1E6;
$borderColorActive: #329CF0;
$navLineColor: #505E78;

/** 背景颜色 **/

$nacBgColor: #354052;
$navBgColorActive: #2B3444;
$tableBgColor: #F5F5F5;
html,
body {
    width: 100%;
    height: 100%;
    color: #313131;
    box-sizing: border-box;
    font-family: "微软雅黑";
}

*,
*:after,
*:after {
    color: inherit;
    box-sizing: inherit;
}

#nav {
    width: 220px;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background-color: $nacBgColor;
    z-index: 1;
    .nav-logo {
        margin: 30px auto;
    }
}

#nav-list {
    margin-top: 50px;
    line-height: 15px;
    border-top: 1px solid $navLineColor;
    li {
        color: #F3F3F4;
        cursor: pointer;
        padding: 15px 22px;
        border-bottom: 1px solid $navLineColor;
        overflow: hidden;
        white-space: nowrap;
        .iconfont {
            color: #B0BCD0 !important;
            margin-right: 5px;
        }
    }
    li.active,
    li:hover {
        background-color: $navBgColorActive;
    }
    .foot {
        width: 100%;
        position: absolute;
        left: 0;
        bottom: 10px;
        border-top: 1px solid $navLineColor;
    }
}

#header {
    padding: 15px;
    border-bottom: 1px solid $lineColor;
    #header-info ul {
        li {
            float: left;
            padding: 0 15px;
            border-left: 1px solid $lineColor;
        }
    }
    #header-info li:first-child {
        border: none;
    }
}

#content {
    position: absolute;
    left: 220px;
    top: 48px;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: auto;
}

.content-title {
    height: 36px;
    padding: 5px 15px 15px;
    box-sizing: content-box;
    border-bottom: 1px solid $lineColor;
    text-align: justify;
    .message-title {
        height: 100%;
    }
    .content-title-btn {
        position: relative;
        top: -15px;
        left: 15px;
    }
    div {
        height: 100%;
        display: inline-block;
    }
}


/** 顶部搜索框 **/

.search-box {
    position: relative;
    border: 1px solid $lineColor;
    width: 265px;
    height: 36px;
    border-radius: 4px;
    overflow: hidden;
    input#search {
        position: absolute;
        top: 0;
        left: 0;
        width: 210px;
        height: 100%;
        line-height: 34px;
        border: none;
        padding-left: 10px;
    }
    .btn-search {
        position: absolute;
        right: 0;
        top: 0;
        padding: 0;
    }
}


/** 新闻列表 **/

.list-box {
    .list-item-box {
        padding: 15px 0;
        border-bottom: 1px solid $lineColor;
        h3 {
            font-weight: bold;
            color: #313D4D;
            font-size: 18px;
            .news-time {
                color: #9FA7B2;
                font-weight: normal;
                font-size: 16px;
            }
        }
        .news-summary {
            padding-top: 15px;
            line-height: 18px;
            font-size: 14px;
        }
    }
    .not-news {
        text-align: center;
        font-size: 46px;
        padding: 30px;
        color: #B0BCD0;
        font-weight: bold;
    }
}


/** 消息头部 **/

.message-head {
    line-height: 48px;
    margin-bottom: 15px;
    border-bottom: 1px solid $lineColor;
    ul {
        height: 100%;
        padding: 0 15px;
        li {
            float: left;
            width: 100px;
            text-align: center;
        }
        li.active {
            color: #329CF0;
            border-bottom: 2px solid $borderColorActive;
        }
    }
}

.content-title:after {
    display: inline-block;
    width: 100%;
    height: 0;
    content: "";
}

.container {
    position: absolute;
    top: 0;
    left: 220px;
    right: 0;
    bottom: 0;
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.cl:after {
    display: block;
    content: "";
    clear: both;
}

.color-warning {
    color: #E24242;
}

.color-white {
    color: #FFFFFF;
}

.padded {
    padding: 15px;
}

.box {
    margin: 15px;
}

.btn {
    display: inline-block;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    padding: 10px 20px !important;
    cursor: pointer;
    border: none;
}

.btn-block {
    width: 100%;
}

.btn-parimy {
    color: #FFFFFF;
    background-color: #0280F6;
}

.radius {
    border-radius: 4px;
}

.logo {
    width: 76px;
}


/** 分页 **/

.paging {
    float: right;
    margin: 15px 0 0 0;
    ul {
        overflow: hidden;
        li {
            float: left;
            margin-left: 5px;
            padding: 5px 8px;
            border: 1px solid #ddd;
            border-radius: 2px;
            cursor: pointer;
        }
        li:hover {
            border: 1px solid $lineColor;
        }
        .border-none {
            border: none !important;
            cursor: default;
        }
        .page-sum {
            margin-left: 20px
        }
        .page-active {
            border: 1px solid $borderColorActive !important;
            color: $borderColorActive;
        }
    }
}


/** 表格 **/

.table {
    border-bottom: 1px solid $lineColor;
    thead {
        background-color: $tableBgColor;
    }
    tr {
        line-height: 50px;
        border-top: 1px solid $lineColor;
    }
    td {
        padding: 0 15px;
        img {
            width: 30px;
            height: 30px;
            vertical-align: middle;
            border-radius: 50px;
        }
        span {
            color: #2BA1F6;
        }
    }
}


/** 考试列表 **/

.exam-list {
    text-align: justify;
    li {
        width: 242px;
        display: inline-block;
    }
}

.test-box {
    width: 242px;
    background-color: $tableBgColor;
    background-image: url('/images/test/exam-time.png');
    background-repeat: no-repeat;
    background-position: 15px 15px;
    border: 1px solid $lineColor;
    .time-box {
        padding: 28px 15px 15px;
        span {
            float: left;
            width: 25%;
            text-align: center;
            font-size: 24px;
        }
    }
    .exam-time {
        border-bottom: 1px solid $lineColor;
        text-align: center;
        margin: 0;
        padding: 10px 0 2px;
        color: #2EA3F6;
    }
    .exam-box {
        padding: 7px;
        p {
            margin: 0;
            margin-bottom: 10px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        span {
            color: #9BA3AF;
            font-size: 14px;
            i {
                font-size: 14px;
            }
        }
    }
    .tested {
        background-image: url('/images/test/over-bg.png');
        background-color: rgba(0, 0, 0, .3);
        background-position: top left;
    }
}